<?php
/**
 * Created by PhpStorm.
 * User: zch
 * Date: 2017/7/20
 * Time: 11:22
 */
class CashContext
{
    public $CashSuper;

    /**
     * CashContext constructor.
     * @param $CashSuper
     */
    public function __construct(CashSuper $CashSuper)
    {
        $this->CashSuper = $CashSuper;
    }

    public function GetResult($money)
    {
        return $this->CashSuper->acceptCash($money);
    }
}